package com.yiwei.jmx.api.model;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;
import com.yiwei.jmx.api.bean.ResponModel;

import java.util.List;

/**
 * Created by xsooy-pc on 18-10-30.
 */

public class NotCertListModel extends ResponModel implements Parcelable {

    /**
     * status : 1
     * data : [{"id":"2","name":"身份认证","rewards":"20","remark":"realname","iscert":0},{"id":"17","name":"人脸识别","rewards":"100","remark":"face","iscert":0},{"id":"16","name":"银行卡认证","rewards":"50","remark":"bankcard","iscert":0},{"id":"3","name":"通信认证","rewards":"40","remark":"mobile","iscert":0},{"id":"7","name":"运营商认证","rewards":"20","remark":"contacts","iscert":0}]
     */
    public List<DataBean> data;

    public static class DataBean implements Parcelable {
        /**
         * id : 2
         * name : 身份认证
         * rewards : 20
         * remark : realname
         * iscert : 0
         */

        public String id;
        public String name;
        public String rewards;
        public String remark;
        public String iscert;

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.id);
            dest.writeString(this.name);
            dest.writeString(this.rewards);
            dest.writeString(this.remark);
            dest.writeString(this.iscert);
        }

        public DataBean() {
        }

        protected DataBean(Parcel in) {
            this.id = in.readString();
            this.name = in.readString();
            this.rewards = in.readString();
            this.remark = in.readString();
            this.iscert = in.readString();
        }

        public static final Parcelable.Creator<DataBean> CREATOR = new Parcelable.Creator<DataBean>() {
            @Override
            public DataBean createFromParcel(Parcel source) {
                return new DataBean(source);
            }

            @Override
            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeTypedList(this.data);
    }

    public NotCertListModel() {
    }

    protected NotCertListModel(Parcel in) {
        this.data = in.createTypedArrayList(DataBean.CREATOR);
    }

    public static final Parcelable.Creator<NotCertListModel> CREATOR = new Parcelable.Creator<NotCertListModel>() {
        @Override
        public NotCertListModel createFromParcel(Parcel source) {
            return new NotCertListModel(source);
        }

        @Override
        public NotCertListModel[] newArray(int size) {
            return new NotCertListModel[size];
        }
    };
}
